
#######################################################################

SVN_VERSION=$(shell svnversion -c |sed 's/^.*://' |sed 's/[A-Z]*M//') 
CURTDATE=$(shell svn info | awk 'NR==12' |awk '{print $$4}') 
CURTTIME=$(shell svn info | awk 'NR==12' |awk '{print $$5}')

default:
	@echo '/* This file is auto generated */ \n#define SVNREVISION "$(SVN_VERSION)"\n#define TIMESTAMP "$(CURTDATE)$(CURTTIME)" ' > inc/mpi_version.h
	make -C ./src
	make -C ./sample
	make -C ./app-demo
lib:
	make -C ./src
bin:
	make -C ./sample
	make -C ./app-demo

clean:
	make -C ./src clean
	make -C ./sample clean
	make -C ./app-demo clean

#######################################################################
